package com.googlecode.lookie.platform.image;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;

import com.googlecode.lookie.platform.image.format.FormatRegistry;
import com.googlecode.lookie.platform.image.format.Formats;

public class FormatContributor
    implements InitializingBean
{

    @Autowired
    private FormatRegistry formatRegistry;

    public void afterPropertiesSet()
    {
        formatRegistry.addFormat( Formats.BMP );
        formatRegistry.addFormat( Formats.GIF );
        formatRegistry.addFormat( Formats.JPEG );
        formatRegistry.addFormat( Formats.PNG );
    }

}
